package com.macrounion.atv.service.entity;

import com.macrounion.base.service.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

/**
 * 网关表net
 * @author Administrator 2020-11-05
 */
@ApiModel(value = "网关表", description = "网关表")
public class Net extends BaseEntity implements Serializable {
    /**
     * 网关名称
     */
    @ApiModelProperty(value = "网关名称")
    private String name;

    /**
     * 网关类型
     */
    @ApiModelProperty(value = "网关类型")
    private String nettype;

    /**
     * 网关id
     */
    @ApiModelProperty(value = "网关id")
    private String netid;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * net
     */
    private static final long serialVersionUID = 1L;

    /**
     * 网关名称
     * @return 网关名称
     */
    public String getName() {
        return name;
    }

    /**
     *
     * @mbg.generated
     */
    public Net withName(String name) {
        this.setName(name);
        return this;
    }

    /**
     * 网关名称
     * @param name 网关名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * 网关类型
     * @return 网关类型
     */
    public String getNettype() {
        return nettype;
    }

    /**
     *
     * @mbg.generated
     */
    public Net withNettype(String nettype) {
        this.setNettype(nettype);
        return this;
    }

    /**
     * 网关类型
     * @param nettype 网关类型
     */
    public void setNettype(String nettype) {
        this.nettype = nettype == null ? null : nettype.trim();
    }

    /**
     * 网关id
     * @return 网关id
     */
    public String getNetid() {
        return netid;
    }

    /**
     *
     * @mbg.generated
     */
    public Net withNetid(String netid) {
        this.setNetid(netid);
        return this;
    }

    /**
     * 网关id
     * @param netid 网关id
     */
    public void setNetid(String netid) {
        this.netid = netid == null ? null : netid.trim();
    }

    /**
     * 备注
     * @return 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     *
     * @mbg.generated
     */
    public Net withRemark(String remark) {
        this.setRemark(remark);
        return this;
    }

    /**
     * 备注
     * @param remark 备注
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", name=").append(name);
        sb.append(", nettype=").append(nettype);
        sb.append(", netid=").append(netid);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}